ionic: Add Reorder Completion Queue (RCQ) support#1733
Open
abhijitG-xlnx wants to merge 5 commits intolinux-rdma:masterfrom
Open
ionic: Add Reorder Completion Queue (RCQ) support#1733abhijitG-xlnx wants to merge 5 commits intolinux-rdma:masterfrom
abhijitG-xlnx wants to merge 5 commits intolinux-rdma:masterfrom
Conversation
To commit: ("RDMA/ionic: Support QP transport mode selection in create and modify").
Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
…eate Store RCQ-related fields from the kernel response in ionic_ctx. These fields are used to enable the RCQ (Reorder Completion Queue) feature for out-of-order receive completion handling. Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Add DV API ionic_dv_create_qp_ex to create QP with explicit transport mode selection. Rename IONIC_V1_CQE_TYPE_RECV_INDIR to IONIC_V1_CQE_TYPE_RECV_RCQE and add ionic_qp_transport_mode enum for ROCE_V2 and MRC transport modes. Refactor ionic_create_qp_ex into ionic_create_qp_ex_common that accepts an optional ionic_dv_qp_init_attr_ex. When ionic_ex is provided with TRANSPORT_MODE mask, the DV transport mode is mapped to the kernel request. The RQ buffer is extended by IONIC_RCQ_SIZE (4 KiB) when the RCQ pd_tag is used for MRC transport mode. Signed-off-by: Allen Hubbe <allen.hubbe@amd.com> Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Add support for processing Receive Completion Queue (RCQ) completions that arrive out-of-order and must be delivered in-order. Add RCQE hardware structures and inline helpers to ionic_fw_types.h and ionic_fw.h for parsing RCQE CQE fields (sequence, op, valid/ready bits) and for RCQ ring header access. Extend ionic_rq_meta with per-WQE fields (rcqe_st_len, rcqe_op, rcqe_imm_data_rkey, rcqe_done) to store out-of-order completion data from RECV_RCQE CQEs until in-order delivery. Handle IONIC_V1_CQE_TYPE_RECV_RCQE in the CQE type switch and add the RCQ poll loop after the main CQE processing to deliver in-order completions. Signed-off-by: Allen Hubbe <allen.hubbe@amd.com> Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
Restructure the expdb WQE size logic in sq_init and rq_init to compute the non-expdb size first, then conditionally upgrade to the expdb size if supported. This eliminates the -Werror=maybe-uninitialized warning on wqe_size and simplifies the control flow. Signed-off-by: Abhijit Gangurde <abhijit.gangurde@amd.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add RCQ support to the ionic provider for out-of-order receive completion handling.
Patch 1: Update kernel headers for RCQ fields.
Patch 2: Fetch RCQ capabilities on context create.
Patch 3: Add ionic_dv_create_qp_ex DV API.
Patch 4: Process RECV_RCQE completions from poll_cq, delivering them in order.